@import "@usehook/cursor.scss";

body {
  /*overflow: auto !important;*/
  margin: 0 !important;
  font-size: var(--font-size);
  font-family: var(--font-family);
  font-weight: var(--font-weight);
}

html {
  height: 100% !important;
  width: 100% !important;
  overflow: hidden !important;
  margin: 0 !important;
}

/*去除聚焦的蓝色边框*/
:focus {
  outline: 0 !important;
}

[v-cloak] {
  display: none !important;
}

::-webkit-scrollbar {
  width: 15px;
  height: 15px;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-thumb {
  border-radius: 10px;
  border: 5px solid transparent;
}

::-webkit-scrollbar-thumb {
  min-height: 50px;
  background-clip: content-box;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.3) inset;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/*el-col 占位用*/
.placeholder {
  border: 1px solid transparent;
}

.default-style {
  font-size: 16px;
  font-weight: var(--font-weight);
}

.button-auto-resize {
  height: calc(var(--font-size) * 2) !important;
  width: calc(var(--font-size) * 2) !important;
  font-size: var(--font-size) !important;
  font-weight: var(--font-weight);
  font-family: var(--font-family);
}

.fit-auto-resize {
  height: calc(var(--font-size) * 2) !important;
  width: fit-content !important;
  font-size: var(--font-size) !important;
  font-family: var(--font-family);
  font-weight: var(--font-weight) !important;
}

.font-auto-resize {
  font-size: var(--font-size) !important;
  font-weight: var(--font-weight) !important;
  line-height: calc(var(--font-size) * 1.8) !important;
  font-family: var(--font-family);

  .el-textarea__inner {
    font-weight: var(--font-weight) !important;
    background: transparent;
  }
}

.input-auto-resize {
  height: calc(var(--font-size) * 2) !important;
  width: 100% !important;
  font-weight: var(--font-weight) !important;
  font-size: var(--font-size) !important;
  font-family: var(--font-family);
}

.full-percent {
  width: 100%;
  height: 100%;
}

:root {
  --background: rgba(232, 232, 232, 0.5);
  --tag-view-background: rgba(255, 255, 255, 0.2);
  --font-color: rgba(0, 0, 0, 1);
  --header-foot-color: white;
  --header-foot-background: rgba(0, 0, 0, 0.4);
  --font-size: 16px;
  --el-font-size-base: var(--font-size);
  --font-size-base: var(--font-size);
  --font-family: font2, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
    Helvetica Neue, PingFang SC, Noto Sans, Noto Sans CJK SC, Microsoft YaHei,
    微软雅黑, sans-serif;
  --font-weight: "";
  --border-radius: 3px;
  /*--background-image: url("@/assets/image/bg.jpg");*/
  --button-color: rgba(226, 226, 226, 0.5);
  --error-font-color: red;
  --border-color: #dcdfe6;
  --el-table-header-background: rgba(190, 190, 190, 0.4);
  --el-border-color: rgba(0, 0, 0, 0.1);
  --el-border-color-hover: rgba(0, 0, 0, 0.1);
  --overlay-glass-background-filter-blur: blur(5px);
  --overlay-glass-background-color: rgb(0 0 0 / 5%);
  --element-glass-background: rgb(255 255 255 / 80%);
  --overlay-not-glass-background-filter-blur: none;
  --overlay-not-glass-background-color: rgb(0 0 0 / 50%);
  --element-not-glass-background: rgba(255, 255, 255, 1);
  --overlay-background-filter-blur: var(--overlay-glass-background-filter-blur);
  --overlay-background-color: var(--overlay-glass-background-color);
  --element-background: var(--element-glass-background);
}

.console-page {
  background: transparent;
  width: 100%;
  height: 100%;
  position: relative;
  backdrop-filter: var(--overlay-background-filter-blur);
}

.el-dialog__header {
  padding: 20px;
}

.el-dialog__title {
  font-size: calc(var(--font-size) + 3px);
}

.el-dialog__body {
  padding: 0 30px 20px 30px;
}

.el-dialog {
  overflow: hidden;
  padding: 0;
}

.el-descriptions__label {
  text-align: center !important;
  font-size: calc(var(--font-size) + 2px) !important;
}

.el-descriptions,
.el-descriptions__body,
.el-descriptions__table {
  height: fit-content;
}

.el-descriptions__body
  .el-descriptions__table.is-bordered
  .el-descriptions__cell {
  font-size: var(--font-size);
  font-weight: var(--font-weight);
  line-height: calc(var(--font-size) * 1.5);
}

.el-dialog__footer {
  padding: 10px;
}

.el-descriptions__content {
  position: relative;
}

.toolbar {
  padding: 5px;
}

.el-select {
  height: 100%;
}

.error {
  position: absolute;
  top: 40px;
  left: 15px;
  color: rgba(255, 0, 0, 0.7);
  font-weight: var(--font-weight);
  font-family: inherit;
}

.el-select__placeholder {
  color: #8b8b8b;
}

.el-drawer__body {
  padding: 5px;
}

.el-drawer__header {
  padding: 10px 20px;
  margin: 0;
  position: relative;
}

.el-select__selected-item,
.el-select__placeholder {
  font-size: var(--font-size) !important;
}

.el-select .el-tag {
  font-size: var(--font-size);
  height: calc(var(--font-size) + 10px);
}

.hidden {
  display: none !important;
}

.is-disabled {
  cursor: default !important;
}

:root .aie-theme-light {
  --aie-bg-color: transparent !important;
  --aie-container-border: rgba(255, 255, 255, 0.5) !important;
  --aie-menus-bg-color: transparent !important;
  --aie-menus-divider-color: rgba(255, 255, 255, 0.5) !important;
  --aie-menus-item-hover-color: rgba(0, 0, 0, 0.1) !important;
}

.modal-class {
  overflow: hidden;
}

.flex-display-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.default-cursor {
  cursor: default !important;
}

.forbid-select {
  -moz-user-select: none !important;
  /*火狐*/
  -webkit-user-select: none !important;
  /*webkit浏览器*/
  -ms-user-select: none !important;
  /*IE10*/
  -khtml-user-select: none !important;
  /*早期浏览器*/
  user-select: none !important;
}

.no-wrap {
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  overflow: hidden !important;
}

.el-collapse-item__header {
  font-family: var(--font-family);
}

.el-collapse {
  font-family: var(--font-family);
  --el-collapse-border-color: rgb(172 172 172 / 0.3);
}

.el-popper__arrow,
.el-popper__arrow::after {
  border-style: none !important;
  /*去掉下拉框的三角*/
  display: none !important;
}

.el-popper {
  margin-top: -10px;
}

.full-in-main {
  width: 100%;
  height: 100%;
  background: var(--background);
  border-radius: var(--border-radius);
}

.el-scrollbar__view {
  height: 100%;
}

.el-card {
  background-color: rgb(255 255 255 / 50%);
}

.glass .el-card {
  background: transparent !important;
  border: 1px solid rgb(0 0 0 / 15%);

  .el-card__header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
}

.el-descriptions__body {
  background-color: rgb(255 255 255 / 10%) !important;
}

.el-descriptions__label.el-descriptions__cell.is-bordered-label {
  background: transparent !important;
}

.el-collapse-item__wrap {
  background-color: transparent !important;
}

.el-collapse-item__header {
  background-color: transparent !important;
}

.el-menu {
  background-color: transparent !important;
}

.el-drawer {
  background-color: var(--element-background) !important;
}

.glass .el-loading-mask {
  background-color: var(--overlay-background-color) !important;
  backdrop-filter: var(--overlay-background-filter-blur) opacity(60%)
    brightness(90%);
}

.el-loading-mask {
  background: rgb(255 255 255 / 20%);
}

.el-overlay {
  background-color: var(--overlay-background-color);
  backdrop-filter: var(--overlay-background-filter-blur);
  overflow: hidden;
}

.el-dialog {
  background-color: var(--element-background) !important;
}

.glass .el-popper {
  background-color: var(--overlay-background-color) !important;
  backdrop-filter: var(--overlay-background-filter-blur) !important;
  border: 1px solid rgb(0 0 0 / 5%) !important;
}

.normal-poper {
  background-color: var(--element-background) !important;
}

.el-dropdown-menu {
  background-color: var(--element-background) !important;
  backdrop-filter: var(--overlay-background-filter-blur) !important;
}

.el-dropdown-menu__item:not(.is-disabled):focus {
  background-color: rgba(195, 223, 255, 0.5);
  color: rgb(64 158 255 / 70%);
}

.el-dropdown-menu__item,
.el-dropdown-menu__item * {
  @include cursor-default-important;
}

.el-select__suffix .el-icon {
  font-size: var(--font-size);
}

.el-select__suffix {
  opacity: 0;
  transition: all 0.5s;
}

.el-select:hover .el-select__suffix,
.el-select .el-select__wrapper[aria-describedby] .el-select__suffix {
  opacity: 1;
  transition: all 0.5s;
}

.el-dialog {
  .el-button + .el-button {
    margin-left: 15px !important;
  }
}

.no-transition {
  transition: none !important;
  animation: none !important;
}

.el-checkbox__inner {
  background-color: rgb(255 255 255 / 70%);
}

.el-checkbox,
.el-checkbox * {
  @include cursor-pointer-important;
}

.pwd input[type="password"] {
  font-family: system-ui;
}
